<!--src/main/resources/templates/articletype/add.html-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>添加文章类型</title>
</head>
<link rel="stylesheet" type="text/css" th:href="@{/css/addstyles.css}">
<body>

<h2>添加文章类型</h2>

<form th:action="@{/articletype/saveAdd}" method="post" th:object="${articletype}">
    <label>文章类型编号:</label>
    <input type="text" th:field="*{id}" readonly="readonly" />

    <label>文章类型:</label>
    <input type="text" th:field="*{type}" />

    <button type="submit">添加</button>
    <a th:href="@{/articletype/findAll}" class="cancel-btn">取消</a>
</form>

</body>
</html>
